/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_prod_service_offer.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_PROD_SERVICE_OFFER
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_prod_service_offer.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_PROD_SERVICE_OFFER::CTable_PPM_PROD_SERVICE_OFFER( )
 :NPCRecordSet( )
{
  setTableName( "PPM_PROD_SERVICE_OFFER" );
  prepareTable();
  prepareQuery();
 
  SERVICE_OFFER_ID.setField( "SERVICE_OFFER_ID", DATA_CHAR, 20, 0 );
  makeTableItem( SERVICE_OFFER_ID );
  PRODUCT_ID.setField( "PRODUCT_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRODUCT_ID );
  APP_ID.setField( "APP_ID", DATA_CHAR, 20, 0 );
  makeTableItem( APP_ID );
  PRODUCT_CD.setField( "PRODUCT_CD", DATA_CHAR, 30, 0 );
  makeTableItem( PRODUCT_CD );
  APP_STATE.setField( "APP_STATE", DATA_CHAR, 20, 0 );
  makeTableItem( APP_STATE );
  APP_TYPE.setField( "APP_TYPE", DATA_CHAR, 6, 0 );
  makeTableItem( APP_TYPE );
  ID.setField( "ID", DATA_CHAR, 20, 1 );
  makeTableItem( ID );
  makeKeyItem( ID );
}


CTable_PPM_PROD_SERVICE_OFFER::CTable_PPM_PROD_SERVICE_OFFER( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_PROD_SERVICE_OFFER" );
  prepareTable();
  prepareQuery();
 
  SERVICE_OFFER_ID.setField( "SERVICE_OFFER_ID", DATA_CHAR, 20, 0 );
  makeTableItem( SERVICE_OFFER_ID );
  PRODUCT_ID.setField( "PRODUCT_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRODUCT_ID );
  APP_ID.setField( "APP_ID", DATA_CHAR, 20, 0 );
  makeTableItem( APP_ID );
  PRODUCT_CD.setField( "PRODUCT_CD", DATA_CHAR, 30, 0 );
  makeTableItem( PRODUCT_CD );
  APP_STATE.setField( "APP_STATE", DATA_CHAR, 20, 0 );
  makeTableItem( APP_STATE );
  APP_TYPE.setField( "APP_TYPE", DATA_CHAR, 6, 0 );
  makeTableItem( APP_TYPE );
  ID.setField( "ID", DATA_CHAR, 20, 1 );
  makeTableItem( ID );
  makeKeyItem( ID );
}

CTable_PPM_PROD_SERVICE_OFFER::~CTable_PPM_PROD_SERVICE_OFFER( )
{
    close();
}

